# Contributor: Hygna <hygna@proton.me>
# Maintainer: Hygna <hygna@proton.me>
pkgname=gomp
pkgver=1.0.0
pkgrel=2
pkgdesc="MPD client inspired by ncmpcpp with builtin cover-art view and LastFM integration."
url="https://github.com/aditya-K2/gomp"
arch="all"
license="GPL-3.0-only"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/aditya-K2/gomp/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests suite

build() {
	go generate
	go build
}

package() {
	install -Dm 755 gomp "$pkgdir"/usr/bin/gomp
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
ccbdbc0f480e53deea818cd972c51abcdc4218788170f5a1a115363a581abc30bdb207dbc7b2240867fa35c55faa9b7bfc7223e8230a313285c1cf60fe7209ee  gomp-1.0.0.tar.gz
"
